import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
import { createResponse } from './common/response.interface';
import type { IResponse } from './common/response.interface';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getHello(): IResponse<string> {
    const data = this.appService.getHello();
    return createResponse(data);
  }
}